<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>4.1 CSS3制作缓慢变长的方形（transition特效）</title>
    <style>
        .ceng{
            width: 100px;
            height: 100px;
            background-color: pink;
            cursor: pointer;
            transition-duration: 2s;/*过渡时间*/
            transition-property: all;/*默认是all*/
            transition-delay: .2s;/*延时过渡*/
            transition-timing-function: ease;/*过渡样式是先慢后快还是先快后慢 默认是ease*/
        }
        .ceng:hover{
            width: 300px;
            height: 150px;
            background-color: red;
            border-radius:40px;

        }
    </style>
</head>
<body>
    <div class="ceng">

    </div>
</body>
</html>